package cn.cjxy.day13springboot_mybatis_02.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author huangjie
 * @date 2025/10/16
 */
@Data//get set方法
@AllArgsConstructor//全参构造
@NoArgsConstructor//无参构造
@ToString
public class Student {

  private Long id;
  private String         name;
  private Integer age;
  private String         gender;
  private Date birthday;
  private String       tel;
  private Integer classId;
  //班级
  private SClass sClass;
    public Student(Long id, String name, Integer age, String gender, Date birthday, String tel) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.birthday = birthday;
        this.tel = tel;
    }
}
